﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Back/Shared/BackBBSSite.Master"
    Inherits="System.Web.Mvc.ViewPage<Wwtfly.BBS.BackModels.ViewModels.Users.UsersViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Edit2</h2>
    <% using (Html.BeginForm(Html.GetEditActionName(Model.Users.Id), "BackUsers"))
       {%>
    <%= Html.ValidationSummary(true) %>
    <%= Html.HiddenFor(mc => mc.Users.Id)%>
    <fieldset  class="editor-fieldset">
        <legend>编辑</legend>
        <div class="editor-label-field-row">
            <div class="editor-label">
                用户名:
            </div>
            <div class="editor-field">
                <%= Html.Label(!string.IsNullOrEmpty(Model.Users.UserName)?Model.Users.UserName:string.Empty) %>
            </div>
        </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
                用户真实性名:
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Users.TrueName)%>
            </div>
        </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
                用户积分:
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Users.UserIntegral) %>
            </div>
            
            </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
                用户邮箱:
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Users.UserEmail)%>
            </div>
            </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
                是否验证邮箱:
            </div>
            <div class="editor-field">
                <%= Html.DropDownListYesOrNoFor(model => model.Users.UserEmailState,"请选择",null) %>
</div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            </div>
            <div class="editor-label">
                手机号码:
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Users.UserMobile) %>
            </div>
            </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
                是否验证手机号码:
            </div>
            <div class="editor-field">
                <%= Html.DropDownListYesOrNoFor(model => model.Users.UserMobileState, "请选择",null)%>
            </div>
            </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
                QQ:
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Users.UserQQ) %>
            </div>
            </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
                MSN:
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Users.UserMSN)%>
            </div>
            </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
                用户彩币:
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Users.UserColourMoney) %>
            </div>
            </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
                用户金额:
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Users.UserMoney) %>
            </div>
            </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
               用户图片:
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Users.UserImgUrl) %>
                <img src="" />
            </div>
            </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
                备注:
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Users.UserRemark)%>
            </div>
            </div>
        <div class="blank_2">
        </div>
            <div class="blank_2">
            </div>
            <p>
                <% string returnUrl = Request.GetRequestReturnUrl("returnUrl", Url.Action("Index")); %>
                <input type="submit" value="保存" id="btn_save" url=" <%=returnUrl %>" />
                &nbsp;
                <%=Html.Button("返回", "btn_return", new { url = returnUrl })%>
            </p>
    </fieldset>
    <% } %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">

        $(document).ready(function () {
            window.validateForm = function () { return true; };
            window.ajaxForm();
            window.unloadForm();
        });
    </script>
</asp:Content>
